<admintpl file="header" />
<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('AdminGongsi/recyclebin')}">回收</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('AdminPost/recyclebin')}">
			<div class="search_type cc mb10">
				<div class="mb10">
					<span class="mr20">分类：
					<select class="select_2" name="term">
						<option value='0'>全部</option>{$taxonomys}
					</select> &nbsp;&nbsp;
					时间： 
					<input type="text" name="start_time" class="J_date" value="{$formget.start_time|default=''}" style="width: 80px;" autocomplete="off">-
					<input type="text" class="J_date" name="end_time" value="{$formget.end_time|default=''}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
					关键字：
					<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="请输入关键字...">
					<input type="submit" class="btn btn-primary" value="搜索" />
					</span>
				</div>
			</div>
		</form>
		<form class="J_ajaxForm" action="" method="post">
			<div class="table-actions">
				<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" data-action="{:u('AdminPost/clean')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
			</div>
			<table class="table table-hover table-bordered table-list">
                <thead>
					<tr>
						<th width="25"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x">ID</label></th>
						
						<th width="100">公司名称</th>
						<th width="50">注册时间</th>
						<th width="80">地址</th>						
						<th width="10">级别</th>
						<th width="50">联系电话</th>
						<th width="20">QQ|微信</th>
						<th width="30">身份证</th>
						<th width="30">营业执照</th>
					
                        <th width="50">描述</th>
						<th width="50">状态</th>
                        <th width="50">修改时间</th>
						<th width="40">操作</th>
					</tr>
				</thead>				
				<foreach name="posts" item="vo">
				<tr>
					<td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}">{$vo.id}</td>
					
					<td><a href="{:U('jiazheng/gongsi/index',array('id'=>$vo['id']))}" target="_blank"> <span>{$vo.gname}</span></a></td>
					<td>{$vo.createdate|date='Y-m-d',###}</td>
					<td>{$vo.address}</td>
					
					<td>{$vo['level']}</td>
					<td>{$vo['gphone']}</td>
					<td>
                    {$vo.qq}<br />
                    {$vo.weixin}
                    </td>
					<td>
                    {$vo.idcard}
					</td>
					<td>
                    
                    {$vo.zhizhao}
                    </td>
					
                    <td>{:empty($vo['remark'])?"":"有"}</td>
					<td>
                    <php>
                    switch($vo['status']){
                        case '-1':echo '删除';break;
                        case '0':echo '未处';break;
                        case '1':echo '已处';
                                               
                        }
                    </php>
                    
					</td>
                    <td>{$vo['update_time']|date='m-d H:i',###}</td>
					<td>
						<a href="{:U('AdminGongsi/restore',array('id'=>$vo['id']))}" class="J_ajax_dialog_btn" data-msg="确定还原吗？">还原</a>| 
						<a href="{:U('AdminGongsi/clean',array('id'=>$vo['id']))}" class="J_ajax_del">删除</a>
                        </td>
				</tr>
				</foreach>
				<tfoot>
				<tr>
						<th width="25"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x">ID</label></th>
						
						<th width="50">公司名称</th>
						<th width="50">注册时间</th>
						<th width="50">地址</th>						
						<th width="50">级别</th>
						<th width="50">联系电话</th>
						<th width="20">QQ|微信</th>
						<th width="30">身份证</th>
						<th width="80">营业执照</th>
					
                        <th width="50">描述</th>
						<th width="50">状态</th>
                        <th width="50">修改时间</th>
						<th width="60">操作</th>
					</tr>
				</tfoot>
                
                
                
                
                
                
                
				
			</table>
			<div class="table-actions">
				<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" data-action="{:u('AdminPost/clean')}" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
			</div>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location.reload();
			}
		}
		setInterval(function() {
			refersh_window();
		}, 2000);
		$(function() {
			setCookie("refersh_time", 0);
			Wind.use('ajaxForm', 'artDialog', 'iframeTools', function() {
				//批量移动
				$('#J_Content_remove').click(function(e) {
					var str = 0;
					var id = tag = '';
					$("input[name='ids[]']").each(function() {
						if ($(this).attr('checked')) {
							str = 1;
							id += tag + $(this).val();
							tag = ',';
						}
					});
					if (str == 0) {
						art.dialog.through({
							id : 'error',
							icon : 'error',
							content : '您没有勾选信息，无法进行操作！',
							cancelVal : '关闭',
							cancel : true
						});
						return false;
					}
					var $this = $(this);
					art.dialog.open("{:u('AdminPost/move')}&ids=" + id, {
						title : "批量移动"
					});
				});
			});
		});
	</script>
</body>
</html>